package work.linruchang.bean;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用户信息
 *
 * @author Administrator
 */
@Entity
@NamedQueries({
})
@Table(name = "v_user")
@Data
@ToString(callSuper = true)
public class User extends BaseEntity {

    private static final long serialVersionUID = -1591685848660375009L;
    private String name;
    private String username;
    private String password;
    private String birthday;
    private String email;
    private String phone;
    private String gender;
    /**
     * -1未开通激活 0正常 1是加锁
     * 参考{Constants#USER_STATUS_IS_LOCKED}等状态码
     */
    private Integer status;
    private Date regDate;
    private Date loginDate;
    private Date updateDate;

    /**
     * 角色主键ID
     */
    private Long userRole;

    /**
     * 市编码
     */
    private String areaCode; // 地区代码 (新增)
    /**
     * 具体在市哪个区/县编码
     */
    private String regionCode;
    private String mscCode;
    /**
     * 近期使用密码1
     */
    private String pass1;
    /**
     * 近期使用密码2
     */
    private String pass2;
    /**
     * 近期更换密码时间
     */
    private Date passUpdateDate;
}
